package experiment_02_Pram;

public class Factory {
	public static IFood getInstance(String className) {
		IFood iFood = null;
		switch (className) {
		case "bread":
			iFood = new Bread();
			break;
		case "milk":
			iFood = new Milk();
			break;
		}
		return iFood;

	}
}
